package com.xinhuajs.articlemg.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import com.xinhuajs.articlemg.dao.IGroupDAO;
import com.xinhuajs.articlemg.mapper.GroupMapper;
import com.xinhuajs.articlemg.pojo.Group;
@Repository("groupDAO")
public class GroupDAOImpl implements IGroupDAO {
	@Autowired
	private GroupMapper groupMapper;
	
	@Override
	public void save(Group group) {
		groupMapper.save(group);
		
	}

	@Override
	public void update(Group group) {
		 groupMapper.update(group);
		
	}

	@Override
	public Group findBygroupid(int groupid) {
		// TODO Auto-generated method stub
		return groupMapper.findBygroupid(groupid);
	}

	@Override
	public List<Group> findAll() {
		// TODO Auto-generated method stub
		return groupMapper.findAll();
	}

	@Override
	public boolean deleteBygroupid(int groupid) {
		// TODO Auto-generated method stub
		return groupMapper.deleteBygroupid(groupid);
	}
}
